﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="WorkOrder.main" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="./css/site2.css" type="text/css" rel="STYLESHEET" />
    <link href="./css/left.css" type="text/css" rel="STYLESHEET" />
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }

        

    </script>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 1px #54a6e2;">
    <form id="form1" runat="server">
        <div>
            <table style="width: 100%; border: 1px none">
                <tr>
                    <td style="width: 50%; border-bottom: 1px none;">
                        <iframe id="a" src="main_notice.aspx" marginwidth="0" marginheight="0" frameborder="0"
                            scrolling="no" width="100%"></iframe>
                    </td>
                    <td style="width: 50%; border-bottom: 1px none;">
                        <iframe id="b" src="main_timely.aspx" marginwidth="0" marginheight="0" frameborder="0"
                            scrolling="no" width="100%"></iframe>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%; vertical-align: top;" colspan="2">
                        <iframe id="c" src="main_thismonth.aspx" marginwidth="0" marginheight="0" frameborder="0"
                            scrolling="no" width="100%"></iframe>
                            <iframe id="d" src="main_online.aspx" marginwidth="0" marginheight="0" frameborder="0"
                            scrolling="no" width="100%" ></iframe>
                    </td>
                    <!-- <td style="width: 50%">
                        <iframe id="d" src="main_online.aspx" marginwidth="0" marginheight="0" frameborder="0"
                            scrolling="no" width="100%"></iframe>
                    </td> -->
                </tr>
                <tr>
                    <td style="width: 100%; vertical-align: top;" colspan="2">
                        
                    </td>
                </tr>
            </table>
            <script type="text/javascript">
                document.getElementById("a").style.height = document.body.clientHeight / 4;
                document.getElementById("b").style.height = document.body.clientHeight / 4;
                document.getElementById("c").style.height = document.body.clientHeight * 0.375;
                document.getElementById("d").style.height = document.body.clientHeight * 0.40;
            </script>
        </div>
    </form>
</body>
</html>
